<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script type="text/javascript">
        var myArray = [1,2,3,4,5,6,7];
        newArray = myArray.slice(1, 6);
        document.write(newArray);
        document.write("<br/>");
        newArray = myArray.slice(1);
        document.write(newArray);

    </script>
</head>
<body>

</body>
</html>